package com.niguang.work.api.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableLogic;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author chenliu
 * @since 2018-07-23
 */
@TableName("work_app_user")
public class AppUser extends Model<AppUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;
    /**
     * 手机号码
     */
    private String userPhone;
    /**
     * 用户姓名
     */
    private String userName;
    /**
     * 用户性别
     */
    private String userSex;
    /**
     * 用户头像
     */
    private String userPic;
    /**
     * 信誉分
     */
    private Integer userCredit;
    /**
     * 城市ID
     */
    private String cityId;
    /**
     * 用户类型 1--个人 2--企业
     */
    private Integer userType;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 删除标识0-未删除 1-已删除
     */
    @TableLogic
    private Integer delFlag;
    /**
     * 用户注册时所在城市的经纬度
     */
    private String cityLatitude;
    /**
     * IC卡号
     */
    private String icCard;
    /**
     * 百度人脸注册id
     */
    private String faceId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public String getUserPic() {
        return userPic;
    }

    public void setUserPic(String userPic) {
        this.userPic = userPic;
    }

    public Integer getUserCredit() {
        return userCredit;
    }

    public void setUserCredit(Integer userCredit) {
        this.userCredit = userCredit;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getCityLatitude() {
        return cityLatitude;
    }

    public void setCityLatitude(String cityLatitude) {
        this.cityLatitude = cityLatitude;
    }

    public String getIcCard() {
        return icCard;
    }

    public void setIcCard(String icCard) {
        this.icCard = icCard;
    }

    public String getFaceId() {
        return faceId;
    }

    public void setFaceId(String faceId) {
        this.faceId = faceId;
    }

    public static final String ID = "id";

    public static final String USER_PHONE = "user_phone";

    public static final String USER_NAME = "user_name";

    public static final String USER_SEX = "user_sex";

    public static final String USER_PIC = "user_pic";

    public static final String USER_CREDIT = "user_credit";

    public static final String CITY_ID = "city_id";

    public static final String USER_TYPE = "user_type";

    public static final String CREATE_TIME = "create_time";

    public static final String DEL_FLAG = "del_flag";

    public static final String CITY_LATITUDE = "city_latitude";

    public static final String IC_CARD = "ic_card";

    public static final String FACE_ID = "face_id";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AppUser{" +
        "id=" + id +
        ", userPhone=" + userPhone +
        ", userName=" + userName +
        ", userSex=" + userSex +
        ", userPic=" + userPic +
        ", userCredit=" + userCredit +
        ", cityId=" + cityId +
        ", userType=" + userType +
        ", createTime=" + createTime +
        ", delFlag=" + delFlag +
        ", cityLatitude=" + cityLatitude +
        ", icCard=" + icCard +
        ", faceId=" + faceId +
        "}";
    }
}
